package itheima.d02;

import java.io.FileWriter;

public class Test {
    public static void main(String[] args) {
        try(
                FileWriter fw = new FileWriter("D:\\javabasepro\\java AdvanceProject\\day11\\src\\itheima\\d02\\ailun.txt");
                ) {

            fw.write("hello world");
            fw.write("\r\n");
            fw.write(97);
            fw.write("\r\n");

            fw.write("济南暴雨，10人失踪",2,2);
            fw.write("\r\n");


            char[] chars = new char[]{'a','b','c'};
            fw.write(chars);
            fw.write("\r\n");

            fw.write(chars,1,2);
            fw.write("\r\n");


        }catch (Exception e){
            throw new RuntimeException(e);
        }

    }
}
